package com.example.demonet.api;

import com.example.demonet.net.TestNet;

/**
 * 作者:张磊
 * 日期:2022/2/9 0009
 * 说明:
 */
public class APIManager {
    private static APIManager apiManager;

    /**
     * 测试
     */
    private final TestNet goodsNet = new TestNet();


    /**
     * 接口初始化入口
     */
    public static APIManager getInstance() {
        if (apiManager == null) {
            apiManager = new APIManager();
        }
        return apiManager;
    }


    public MaterialAPI getMaterialAPI() {
        return goodsNet.getMaterialAPI();
    }
}